package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class StatementCursor implements CursorIntent {

    private int beginIndex;
    private int endIndex;
    private CursorSensitivity cursorSensitivity;
    private CursorScrollability cursorScrollability;
    private CursorHoldability cursorHoldability;
    private CursorReturnability cursorReturnability;
    private ExtendedStatementName extendedStatementName;

    public StatementCursor(int beginIndex,
                           CursorSensitivity cursorSensitivity,
                           CursorScrollability cursorScrollability,
                           CursorHoldability cursorHoldability,
                           CursorReturnability cursorReturnability,
                           ExtendedStatementName extendedStatementName) {
        this.beginIndex = beginIndex;
        this.endIndex = extendedStatementName.getEndIndex();
        this.cursorSensitivity = cursorSensitivity;
        this.cursorScrollability = cursorScrollability;
        this.cursorHoldability = cursorHoldability;
        this.cursorReturnability = cursorReturnability;
        this.extendedStatementName = extendedStatementName;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public CursorSensitivity getCursorSensitivity() {
        return cursorSensitivity;
    }

    public CursorScrollability getCursorScrollability() {
        return cursorScrollability;
    }

    public CursorHoldability getCursorHoldability() {
        return cursorHoldability;
    }

    public CursorReturnability getCursorReturnability() {
        return cursorReturnability;
    }

    public ExtendedStatementName getExtendedStatementName() {
        return extendedStatementName;
    }

}
